package top.iflyoung.cim.biz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


/**
 * @author liguiyang
 * @description 聊天室成员类
 * @sine 1.8
 * @date 2021/9/220:45
 **/
@Data
@TableName("chat_group_member")
public class ChatGroupMember extends Model<ChatGroup> {
    /**
     * 数据库主键
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;
    /**
     * 组id
     */
    @TableField("GroupId")
    private Long groupId;
    /**
     * 成员id
     */
    @TableField("MemberID")
    private Long memberId;
    /**
     * 加入时间
     */
    @TableField("JoinTime")
    private Date joinTime;

    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
